<?php

use Phinx\Seed\AbstractSeed;

class Admin extends AbstractSeed
{
    public function run()
    {
        $data = array(
          array(
              'account'      => 'shsyadmin',
              'real_name'    => '超级管理员',
              'manager_name' => '超级管理员',
              'email'        => 'manager@shsytour.com',
              'mobile'       => '18633846582',
              'type'         => 0,
              'password'     => md5('shsy2016'),
              'profiles'     => '超级管理员'
          )
        );

        $posts = $this->table('managers');
        $posts->insert($data)
              ->save();

    }
}
